package org.qydjk.common.pojo;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * SSysLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "s_sys_log", catalog = "qydjk")
public class SSysLog implements java.io.Serializable {
	private static final long serialVersionUID = -4539483663915134084L;
	private Integer id;
	private String loginName;
	private String roleName;
	private String optContent;
	private String clientIp;
	private Date createTime;

	// Constructors

	/** default constructor */
	public SSysLog() {
	}

	/** minimal constructor */
	public SSysLog(Date createTime) {
		this.createTime = createTime;
	}

	/** full constructor */
	public SSysLog(String loginName, String roleName, String optContent,
			String clientIp, Date createTime) {
		this.loginName = loginName;
		this.roleName = roleName;
		this.optContent = optContent;
		this.clientIp = clientIp;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "login_name")
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "role_name")
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Column(name = "opt_content", length = 1024)
	public String getOptContent() {
		return this.optContent;
	}

	public void setOptContent(String optContent) {
		this.optContent = optContent;
	}

	@Column(name = "client_ip")
	public String getClientIp() {
		return this.clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}